<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>{%$form.formgroupname%} - {%$lngpack.sitename%}</title>
<meta name="keywords" content="{%$lngpack.keyword%}" />
<meta name="description" content="{%$lngpack.description%}" />
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{%$rootdir%}js/jquery.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/basicrun.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
var seccode_empty = "{%$lngpack.seescodeerr%}";
function {%$form.formcode%}form(seccodetype) {
	{%forlist from=$array key=i%}
		{%if $array[i].isvalidate==1%}
			{%if $array[i].validatetext!=''%}
				if(document.{%$form.formcode%}.{%$array[i].attrname%}.value.match({%$array[i].validatetext%}ig)==null) {
			{%else%}
				if(document.{%$form.formcode%}.{%$array[i].attrname%}.value==''){
			{%/if%}
			document.{%$form.formcode%}.{%$array[i].attrname%}.focus();
			alert('{%$array[i].typename%}Input error, please return to re-enter');
			return false;
		}
		{%/if%}
	{%/forlist%}

	if(seccodetype=='1' && document.{%$form.formcode%}.seccode.value.match(/^[A-Z]{4}$/ig)==null) {
		document.{%$form.formcode%}.seccode.focus();
		alert(seccode_empty);
		return false;
	}
	if(document.{%$form.formcode%}.uname.value=="") {
		document.{%$form.formcode%}.uname.focus();
		alert("username cannot be empty！");
		return false;
	}
	if(document.{%$form.formcode%}.country.value=="") {
		document.{%$form.formcode%}.country.focus();
		alert("nationality cannot be empty！");
		return false;
	}
	if(document.{%$form.formcode%}.age.value=="") {
		document.{%$form.formcode%}.age.focus();
		alert("age cannot be empty！");
		return false;
	}
	if(document.{%$form.formcode%}.mobile.value=="") {
		document.{%$form.formcode%}.mobile.focus();
		alert("mobile cannot be empty！");
		return false;
	}
	
	if(document.{%$form.formcode%}.email.value=="") {
		document.{%$form.formcode%}.email.focus();
		alert("Email cannot be empty！");
		return false;
	}
	
	if(document.{%$form.formcode%}.refereename.value=="") {
		document.{%$form.formcode%}.refereename.focus();
		alert("Referee Name cannot be empty！");
		return false;
	}
	
	if(document.{%$form.formcode%}.refereeid.value=="") {
		document.{%$form.formcode%}.refereeid.focus();
		alert("Referee ID cannot be empty！");
		return false;
	}
	
}
</script>
<script type="text/javascript">
$().ready(function() {
	$("#clickmenubotton li span").hover(function() {
		$(this).addClass("bgmenuhove2");
		$(this).parent().find("ul.subnav").slideDown('fast').show(); 
		$(this).parent().hover(function() {}, function(){
			$(this).parent().find("ul.subnav").fadeOut('fast');
			$(this).parent().find("span").removeClass("bgmenuhove2");
		});
	});
});
</script>
</head>

<body>
<div class="all">
	{%link file="en/public/head2.html"%}
           <div class="content">
        	<div class="clear"></div>
        	<div class="dengluz zhuce">
              <div class="form">
					<form name="{%$form.formcode%}" id="{%$form.formcode%}" method="post" action="{%$form.action%}"  onSubmit="return {%$form.formcode%}form('{%$form.isseccode%}')">
					<input type="hidden" name="linkurl" value="add">
					<input type="hidden" name="fgid" id="fgid" value="{%$form.fgid%}">
					<input type="hidden" name="formcode" id="formcode" value="{%$form.formcode%}">

            


						{%forlist from=$array key=i%}
						{%if $array[i].isline==1%}
                        {%$array[i].typename%}
						{%else%}
                        
                        {%if $array[i].isvalidate==1%}*{%/if%}<span>{%$array[i].typename%}:</span>
                        

								{%if $array[i].inputtype=='string'%}<input type="text" name="{%$array[i].attrname%}" size="{%$array[i].attrsize%}" maxlength="{%$array[i].attrlenther%}" value="{%$array[i].attrvalue%}" class="input1"/><br />{%/if%}
								{%if $array[i].inputtype=='int'%}<input type="text" name="{%$array[i].attrname%}]" size="{%$array[i].attrsize%}" maxlength="{%$array[i].attrlenther%}" value="{%$array[i].attrvalue%}" class="input1"/><br />{%/if%}
								{%if $array[i].inputtype=='datetime'%}
									 <input type="text" name="{%$array[i].attrname%}" size="{%$array[i].attrsize%}" id="{%$array[i].attrname%}" onClick="WdatePicker({el:'{%$array[i].attrname%}',readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})" maxlength="{%$array[i].attrlenther%}" class="input1"/><br />
								{%/if%}
								{%if $array[i].inputtype=='selectinput'%}
								<input type="text" name="{%$array[i].attrname%}" size="{%$array[i].attrsize%}" id="{%$array[i].attrname%}" value="" maxlength="{%$array[i].attrlenther%}" class="input1"/><br />
								<select size="1" name="{%$array[i].attrname%}selectinputvalue" onChange="javascript:$('#{%$array[i].attrname%}').val(this.value)">
									<option value="">{%$array[i].typename%}</option>
									{%forlist from=$array[i].selectinputvalue key=ii%}
									<option value="{%$array[i].selectinputvalue[ii].name%}">{%$array[i].selectinputvalue[ii].name%}</option>
									{%/forlist%}
								</select><br />
								{%/if%}
								{%if $array[i].inputtype=='img'%}
									<input type="text" name="{%$array[i].attrname%}" size="{%$array[i].attrsize%}" value="{%$array[i].attrvalue%}" class="input1"/><br />
								{%/if%}
								{%if $array[i].inputtype=='addon'%}
									<input type="text" name="{%$array[i].attrname%}" size="{%$array[i].attrsize%}" value="{%$array[i].attrvalue%}" class="input1"/><br />
								{%/if%}
								{%if $array[i].inputtype=='htmltext'%}<textarea name="{%$array[i].attrname%}" cols="{%$array[i].attrsize%}" rows="{%$array[i].attrrow%}" class="input1">{%$array[i].attrvalue%}</textarea><br />{%/if%}
								{%if $array[i].inputtype=='editor'%}<textarea name="{%$array[i].attrname%}" cols="{%$array[i].attrsize%}" rows="{%$array[i].attrrow%}" class="input1">{%$array[i].attrvalue%}</textarea><br />{%/if%}
								{%if $array[i].inputtype=='text'%}<textarea name="{%$array[i].attrname%}" cols="{%$array[i].attrsize%}" rows="{%$array[i].attrrow%}" class="input1">{%$array[i].attrvalue%}</textarea><br />{%/if%}
								{%if $array[i].inputtype=='select'%}
									<select size="1" name="{%$array[i].attrname%}">
									{%forlist from=$array[i].attrvalue key=ii%}
										<option {%if $array[i].attrvalue[ii].selected=='selected'%}selected="selected" {%/if%}value="{%$array[i].attrvalue[ii].name%}">{%$array[i].attrvalue[ii].name%}</option>
									{%/forlist%}
									</select><br />
								{%/if%}
								{%if $array[i].inputtype=='radio'%}
									{%forlist from=$array[i].attrvalue key=ii%}
										<input {%if $array[i].attrvalue[ii].selected=='selected'%}checked="checked" {%/if%}name="{%$array[i].attrname%}" type="radio" value="{%$array[i].attrvalue[ii].name%}" /> {%$array[i].attrvalue[ii].name%}
									{%/forlist%}<br />
								{%/if%}
								{%if $array[i].inputtype=='checkbox'%}
									{%forlist from=$array[i].attrvalue key=ii%}
										<input {%if $array[i].attrvalue[ii].selected=='selected'%}checked="checked" {%/if%}name="{%$array[i].attrname%}[]" type="checkbox" value="{%$array[i].attrvalue[ii].name%}" /> {%$array[i].attrvalue[ii].name%}
									{%/forlist%}<br />
								{%/if%}
								{%if $array[i].typeremark!=''%}{%/if%}
						{%/if%}
						{%/forlist%}
						{%if $form.isseccode==1%}
						<span>Type the code shown</span><input type="text" id="code" name="seccode" class="input1" maxlength="4" size="3" style="text-transform: uppercase;"/><img title="Try a new code" id="{%$form.formcode%}seccodesrc" onClick="sessionimg('{%$form.formcode%}seccodesrc','{%$rootdir%}')" src="{%$seccodelink%}" style="cursor: pointer;" align="absmiddle"/>
						{%/if%}
                        <input type="submit" class="submit" name="submit" id="{%$form.formcode%}botton" value="submit" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="cancel" name="reset" value="cancel" type="reset" />
					</form>
                
                
                </div>
                
            </div>
        </div>


{%link file="en/public/footer_02.html"%}
</div>
</body>

</html>
